luci-base: form.js: remove stray `<br>` elements from section placeholder
authorJo-Philipp Wich <[email protected]>
Mon, 16 May 2022 14:03:14 +0000 (16:03 +0200)
committerJo-Philipp Wich <[email protected]>
Sat, 23 Jul 2022 11:53:42 +0000 (13:53 +0200)
Theme CSS styles shoudl take care of introducing padding as needed.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit e4e001b59657e4cd0f333a3f43ce66b8f789deb2)

modules/luci-base/htdocs/luci-static/resources/form.js

index 9aca0580988db6a7d8ff146b763c274f7208841e..4dc1a7c5b7676e7876b48c188f88ed873de51ba8 100644 (file)
@@ -2277,10 +2277,7 @@ var CBITypedSection = CBIAbstractSection.extend(/** @lends LuCI.form.TypedSectio
 
        /** @private */
        renderSectionPlaceholder: function() {
-               return E([
-                       E('em', _('This section contains no values yet')),
-                       E('br'), E('br')
-               ]);
+               return E('em', _('This section contains no values yet'));
        },
 
        /** @private */